package eu.ec.ellipcis.integration.ws.transformer;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.integration.Message;
import org.springframework.integration.annotation.MessageEndpoint;
import org.springframework.integration.annotation.ServiceActivator;
import org.springframework.integration.annotation.Transformer;
import org.springframework.integration.support.MessageBuilder;
import org.springframework.stereotype.Component;

import eu.ec.ellipcis.integration.ws.domain.jaxb.AccountBalanceRequest;
import eu.ec.ellipcis.integration.ws.domain.jaxb.AccountBalanceResponse;


public class SecondTransformer {

    Log log = LogFactory.getLog(SecondTransformer.class);

    @Transformer
    public String transform(AccountBalanceRequest request) {
        log.info("SecondTransformer - Message Arrived");
        return request.toString();
    }
}
